import request from '@/utils/request.js'
// 获取所有部门
export function companyDepartment() {
  return request({ url: '/company/department' })
}
// 获取所有员工
export function sysUserSimple() {
  return request({ url: '/sys/user/simple' })
}
// 新增部门
export function companyDepartmentPost(data) {
  return request({ url: '/company/department', method: 'post', data })
}
// 删除部门
export function companyDepartmentDelete(id) {
  return request({ url: '/company/department/' + id, method: 'delete' })
}
// 修改部门
export function companyDepartmentPut(data) {
  return request({ url: '/company/department/' + data.id, method: 'put', data })
}
